<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>layui</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<link rel="stylesheet" href="__PUBLIC__/layui/css/layui.css" media="all">
		<link rel="stylesheet" href="__PUBLIC__/font-awesome/css/font-awesome.min.css" media="all" />
		<link rel="stylesheet" href="__CSS__/admin.css" media="all">
		<style type="text/css">
			/* tooltip */
			
			#tooltip {
				position: absolute;
				border: 1px solid #ccc;
				background: #333;
				padding: 2px;
				display: none;
				color: #fff;
			}
			
			.layui-btn-danger {
				background-color: #2BB6F6;
			}
			
			.layui-col-xs6 {
				width: 10%;
			}
			
			.layadmin-carousel {
				height: 100px!important;
			}
			
			.layadmin-carousel .layui-carousel,
			.layadmin-carousel>[carousel-item]>* {
				background-color: #fff;
			}
			
			.layadmin-carousel .layui-col-space10 {
				margin: 0;
			}
			
			.layadmin-backlog .layadmin-backlog-body {
				display: block;
				padding: 10px 15px;
				background-color: #f8f8f8;
				color: #999;
				border-radius: 2px;
				transition: all .3s;
				-webkit-transition: all .3s;
			}
			
			.layadmin-backlog-body h3 {
				padding-bottom: 10px;
				font-size: 12px;
			}
		</style>
	</head>

	<body style="padding:10px;">
		<div class="tplay-body-div">
			<div class="layui-tab">
				<ul class="layui-tab-title">
					<li class="layui-this">赠送列表</li>
				</ul>
			</div>
			<div class="layui-carousel layadmin-carousel layadmin-backlog" lay-anim="" lay-indicator="inside" lay-arrow="none">
				<div carousel-item="">
					<ul class="layui-row layui-col-space10 layui-this">
						<li class="layui-col-xs6">
							<a lay-href="" class="layadmin-backlog-body">
								<h3>赠送总房券</h3>
								<p><cite>{$total}</cite></p>
							</a>
						</li>
					</ul>
				</div>
				<button class="layui-icon layui-carousel-arrow" lay-type="sub"></button><button class="layui-icon layui-carousel-arrow" lay-type="add"></button></div>

			<form class="layui-form serch" action="{:url('admin/member/zs_recoreds')}" method="post">
				<div class="layui-form-item" style="float: left;">
					<div class="layui-input-inline">
						<input type="text" name="user_name" value="{$user_name}" lay-verify="title" autocomplete="off" placeholder="会员名称" class="layui-input layui-btn-sm">
					</div>
					<div class="layui-input-inline">
						<input type="text" name="mobile" value="{$mobile}" lay-verify="title" autocomplete="off" placeholder="手机号" class="layui-input layui-btn-sm">
					</div>
					<div class="layui-input-inline">
						<input type="text" name="order_sn" value="{$order_sn}" lay-verify="title" autocomplete="off" placeholder="订单号" class="layui-input layui-btn-sm">
					</div>
					<div class="layui-input-inline">
						<div class="layui-inline">
							<select name="time" lay-search="">
								<option value="today" {if condition="$time eq 'today'" }selected{/if}>今日</option>
								<option value="yesterday" {if condition="$time eq 'yesterday'" }selected{/if}>昨日</option>
								<option value="week" {if condition="$time eq 'week'" }selected{/if}>最近一周</option>
								<option value="month" {if condition="$time eq 'month'" }selected{/if}>最近一月</option>
							</select>
						</div>
					</div>
					<div class="layui-input-inline">
						<div class="layui-inline">
							<select name="store_id" lay-search="">
								<option value="">请选择门店</option>
								{volist name="store" id="vo"}
								<option value="{$vo.id}" {if condition="$store_id eq $vo.id" }selected{/if}>{$vo.store_name}</option>
								{/volist}
							</select>
						</div>
					</div>
					<div class="layui-input-inline">
						<div class="layui-inline">
							<select name="pay_type" lay-search="">
								<option value="">支付方式</option>
								<option value="1" {if condition="$pay_type eq 1" }selected{/if}>现金</option>
								<option value="2" {if condition="$pay_type eq 2" }selected{/if}>微信</option>
								<option value="3" {if condition="$pay_type eq 3" }selected{/if}>支付宝</option>
								<option value="4" {if condition="$pay_type eq 4" }selected{/if}>其他</option>
							</select>
						</div>
					</div>
					<div class="layui-input-inline">
						<div class="layui-inline">
							<select name="tj_emp" lay-search="">
								<option value="">请选择业务员</option>
								{volist name="ywy" id="vo"}
								<option value="{$vo.id}" {if condition="$tj_emp eq $vo.id" }selected{/if}>{$vo.user_name}</option>
								{/volist}
							</select>
						</div>
					</div>
					<button class="layui-btn layui-btn-danger layui-btn-sm" lay-submit="" lay-filter="serch">查询</button>
				</div>
			</form>
			<table class="layui-table" lay-size="sm">
				<colgroup>
					<col width="100">
					<col width="100">
					<col width="100">
					<col width="100">
					<col width="100">
					<col width="100">
					<col width="100">
					<col width="100">
					<col width="100">
					<col width="100">
				</colgroup>
				<thead>
					<tr>
						<th>订单号</th>
						<th>会员</th>
						<th>手机号</th>
						<th>门店</th>
						<th>业务员</th>
						<th>充值金额</th>
						<th>赠送房券</th>
						<th>房券备注</th>
						<th>收银员</th>
						<th>充值时间</th>
					</tr>
				</thead>
				<tbody>
					{volist name="list" id="vo"}
					<tr>
						<td>{$vo.order_sn}</td>
						<td>{$vo.user_name}</td>
						<td>{$vo.mobile}</td>
						<td>{$vo.store_name}</td>
						<td>{$vo.u_name}</td>
						<td>{$vo.balance}</td>
						<td style="color: #2BB6F6;cursor:pointer;" onclick="fq_info('{$vo.order_sn}')">{$vo.zs_zfq}</td>
						<td>{$vo.msg}</td>
						<td>{$vo.u2_name}</td>
						<td>{$vo.time}</td>
					</tr>
					{/volist}
				</tbody>
			</table>
			<div style="padding:0 20px;">{$list->render()}</div>

			{include file="public/foot"}
			<script> 
				function fq_info(order_sn){
					var url = "{:url('member/user_fq')}?order_sn=" + order_sn;
					layer.open({
					  type: 2,
					  title: '房券详情',
					  shadeClose: true, 
					  area: ['700px', '700px'],
					  content: [url]
					}); 
				}
			</script>
		</div>
	</body>

</html>